package com.base.proxy;


import com.base.service.IProductService;
import com.base.service.ProductService;

/**
 * FileName: ProxyTest
 *
 * @author innocent
 * @date 2018/10/26 14:48
 */
public class ProxyTest {
    public static void main(String[] args) {
        IProductService productService = new ProductService();
        JdkProxyFactory jdkProxyFactory = new JdkProxyFactory(productService);
        IProductService proxyInstance = (IProductService) jdkProxyFactory.getProxyInstance();
        proxyInstance.addProduct();
    }
}
